package com.songcha.module_task.ui.adapter



import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_common.util.GlideUtil
import com.songcha.module_task.R

import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder

class TaskBannerAdapter() : BaseBannerAdapter<BannerBean.DataBean>() {

    override fun bindData(holder: BaseViewHolder<BannerBean.DataBean>, data: BannerBean.DataBean, position: Int, pageSize: Int) {
        val iv=holder.findViewById<ImageView>(R.id.task_iv_banner)
        GlideUtil.loadNetImage(iv,data.url)
        //Glide.with(mContext).load(data).into(iv)
    }

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.task_item_task_banner
    }



}